{% extends "base.html" %} {% block title %}Contact Enquiries Management - NGO Foundation{% endblock %} {% block body_class %}admin-portal-active{% endblock %} {% block content %}
{% include "admin/_admin_sidebar.html" %}
{% set topbar_title = 'Contact Enquiries & Messages' %} {% set topbar_subtitle = 'Home / Operations / Public Enquiries Registry' %} {% include "admin/_admin_topbar.html" %} {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %} {% endfor %} {% endif %} {% endwith %}

Website Contact Enquiries & Messages

Real-time management of public enquiries, visitor questions, and direct email responses.

Total Inquiries

{{ counts.total }}

All-time website messages
New / Unread

{{ counts.unread }}

Awaiting initial review
In Progress / Contacted

{{ counts.read }}

Being reviewed by team
Resolved / Answered

{{ counts.resolved }}

Successfully addressed
{% if search_q or from_date or to_date or current_status != 'all' %} {% endif %}
Public Contact Enquiries Registry
Showing {{ enquiries|length }} of {{ counts.total }} records
{% for enq in enquiries %} {% else %} {% endfor %}
Reference & Date Sender Details Subject & Message Status Response & Follow-up Actions
{{ enq.reference_no or ('ENQ-2026-000' ~ enq.id) }}
{{ enq.created_at_local_formatted }}
{{ (enq.name[0] if enq.name else 'E')|upper }}
{{ enq.name }}
{{ enq.email }}
{% if enq.phone %}
{{ enq.phone }}
{% endif %}
{{ enq.subject }}

{{ enq.message }}

{{ enq.status_label }} {% if enq.admin_reply %}
Replied via Email
{% if enq.replied_at %}
{{ enq.replied_at_local_formatted }}
{% endif %} {% elif enq.follow_up_notes %}
Note Added
{{ enq.follow_up_notes }}
{% else %} Awaiting Response {% endif %}
No inquiries found

No contact messages match your selected filters or search parameters.

Reset Filters
{% endblock %}